package com.chenpp.netty.tomcat.servlet;

import com.chenpp.netty.tomcat.http.CPRequest;
import com.chenpp.netty.tomcat.http.CPResponse;
import com.chenpp.netty.tomcat.http.CPHttpServlet;

/**
 * 2020/3/9
 * created by chenpp
 */
public class HelloServlet extends CPHttpServlet {
    @Override
    public void doGet(CPRequest request, CPResponse response) {
        this.doPost(request,response);
    }

    @Override
    public void doPost(CPRequest request, CPResponse response) {
        String name = request.getParameter("name");
        response.write("hello:"+name);
    }
}
